﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SessionManager
/// </summary>
public class SessionManager
{
    private const string _Username = "Username";

	public SessionManager()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    
    public static string Username
    {
        get 
        {
            string result = string.Empty;
            if (HttpContext.Current.Session[_Username] != null)
            {
                result = HttpContext.Current.Session[_Username].ToString();
            }
            return result;
        }
        set 
        {
            HttpContext.Current.Session[_Username] = value;
        }
    }
}